<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:body>

	<div class="ui-widget ui-widget-header">
		<h:panelGrid columns="2" style="margin:auto;">
			<h1>Sistema de Usuarios</h1>

			<p:ajaxStatus style="width:16px;height:16px;" id="ajaxStatusPanel">
				<f:facet name="start">
					<p:outputLabel value="cargando..." />
					<h:graphicImage value="/resources/img/mailloader.gif" />
				</f:facet>

				<f:facet name="complete">
					<p:outputLabel value="" />
				</f:facet>

				<f:facet name="error">

					<p:outputLabel value="Error.." />
				</f:facet>
			</p:ajaxStatus>
		</h:panelGrid>
	</div>




	<p:menubar rendered="#{sessionBean.userId!=null}">

		<p:menuitem value="Inicio" outcome="/security.xhtml"
			icon="ui-icon-star" />

		<p:menuitem value="Usuarios" outcome="/search_user.xhtml"
			icon="ui-icon-star" />
			
		<f:facet name="options">

			<p:commandButton value="Salir" action="#{loginController.doLogout}"
				icon="ui-icon-extlink" />

		</f:facet>


	</p:menubar>




</h:body>
</html>
